package com.treasure.infrastructure.mapstruct;

import com.treasure.infrastructure.model.doc.SegmentVectorDocBean;
import com.treasure.infrastructure.model.po.KnowledgeDocumentVector;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author sunhongmin
 * @date 2023/9/4 13:53
 * @description
 */
@Mapper
public interface KnowledgeDocumentAssembler {
    KnowledgeDocumentAssembler INSTANCE = Mappers.getMapper(KnowledgeDocumentAssembler.class);


    @Mapping(source = "documentName",target = "docName")
    SegmentVectorDocBean convertToSegmentVectorDocBean(KnowledgeDocumentVector knowledgeDocumentVector);
    List<SegmentVectorDocBean> convertToSegmentVectorDocBeanList(List<KnowledgeDocumentVector> knowledgeDocumentVector);


}
